import axios from "@/util/request.js";
import base from '../base.js'

export const dataAnalysis = {
  getApplicantBgRatio: () => axios.get(`${base.baseUrl}/analysis/getApplicantBgRatios`),
  getApplicantMajorRatio: () => axios.get(`${base.baseUrl}/analysis/getApplicantMajorRatios`),
  getLocationRatios: () => axios.get(`${base.baseUrl}/analysis/getLocationRatios`),
  getSalaryRatios: () => axios.get(`${base.baseUrl}/analysis/getSalaryRatios`),
  getStatusRatios: () => axios.get(`${base.baseUrl}/analysis/getStatusRatios`),
  getTagRatios: () => axios.get(`${base.baseUrl}/analysis/getTagRatios`),
  testRatio: (data) => axios.get(`${base.baseUrl}/analysis/count/test?positionId=${data}`),
  examRatio: (data) => axios.get(`${base.baseUrl}/analysis/count/exam?positionId=${data}`),
}
